{% extends 'base.html' %}

{% block title %}
    主页
{% endblock %}



{% block content %}
    <h2>Welcome to the Home Page!</h2>
    <p>Content goes here.</p>

    {% if name %}
        <p>Welcome, {{ user }}!</p>
    {% else %}
        <p>Please log in.</p>
    {% endif %}



    <ul>
        {% for item in list %}
            <li>{{ item }}</li>
        {% endfor %}
    </ul>


    <p>{{ name|capitalize }}</p>
    <p>{{ price|round(2) }}</p>


    {% from "macros.html" import render_item %}

    <h1>Items</h1>
    {% for item in items %}
        {{ render_item(item) }}
    {% endfor %}



    <h1>{{ user.name }}</h1>
    <p>Age: {{ user.age }}</p>





{% endblock %}